@primary: #3772c8;
:root {
  --max-width-vw: 1440px; /* 定义最大的 font-size */
}

.property(@value, @property) {
  @{property}: @value;
}

.size(@vw, @max, @property: font-size) {
  .property(min(@vw, @max), @property);
}

html,
body {
  font-size: 14px;
  color: #42494f;
  background-color: #f4f7fa;
}

@media (min-width: 1200px) {
  .container,
  .container-sm,
  .container-md,
  .container-lg,
  .container-xl {
    max-width: 1200px;
  }
}

.ellipsis(@lineCount: 2) {
  display: -webkit-box;
  -webkit-line-clamp: @lineCount;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: (@lineCount * 1.8em);
  line-height: 1.8em;
}

a,
.page-link {
  color: @primary;
}

.list-group-item.active,
.btn-primary,
.page-item.active .page-link {
  background-color: @primary;
  border-color: @primary;
}
.card-text {
  line-height: 1.8;
}

.main-- {
  margin-bottom: 20px;
}

.main--rich__text {
  font-size: 16px;
  h1 {
    margin: 20px 0 30px;
    text-align: center;
  }
  .detail--pic {
    margin: 20px 0;
  }
  img {
    float: left;
    margin: 0 20px 20px 0;
    max-width: 40%;
  }
  .rich--img__wide {
    float: none;
    margin: 0 auto;
    max-width: 100%;
    width: 100%;
  }
}

.product--list {
  padding: 10px 0;
  .card {
    margin-bottom: 30px;
    border: none;
  }
}

.home--feature {
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 6.4vw;

  .card-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    width: 80%;
    h1 {
      .size(2.28vw, 32px);
    }
    p {
      .size(1.5vw, 21px);
    }
  }
}

.home--product {
  margin-top: 7.638vw;
  border: none;
  border-radius: 10px;
}
